﻿using System;
using System.Collections.Generic;
using System.Text;
using IBLL.View;

namespace BLL.Controller
{
    public abstract class WinFormControllerBase:ControllerBase
    {
        protected IViewForm view_;
        public override IViewForm View
        {
            get
            {
                return (IViewForm)view_;
            }
            set
            {
                view_ = value;


            }
        }
        private object key_;
        public override object PrimaryKey
        {
            get
            {
                return key_;
            }
            set
            {
                key_ = value;
            }
        }
        public override void OnFinalization()
        {
            base.OnFinalization();
        }
        public override void OnInitialization()
        {
            AssignEvent();
            base.OnInitialization();
        }
        /// <summary>
        /// hook view event 
        /// </summary>
        protected virtual void AssignEvent()
        {

        }
    }
}
